/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sea.util;

import java.util.ArrayList;
import java.util.Hashtable;
import javax.swing.JDialog;
import javax.swing.JFrame;
import simhya.script.CommandManager;
import simhya.script.Commander;

/**
 *
 * The class of set global variables,
 * 
 * @author  Zhirun Ding
 * 
 * Created on 06/07/2012
 * 
 */

public class PublicParam {
    //
    public static Hashtable ModelName2VariableHashtable = new Hashtable();
    //commandtype:simulate,explore,plot,save
    public static String CommandTypeName = "";
    //a new model file name which created last.
    public static String NewModelFileName = "";
    
    public static String SimulationType = "";
    
    //current model file name which is operating now
    public static String CurrrentModelFileName = "";
    //working directory which relative path of storing and opening file 
    public static String WorkingDirectory = "";
    //current model variable name which loading model store in.
    public static String CurrentModelVariableName = "";
    
    //main form
    public static JFrame SimHyAMainFrame;
    
    //simulate
    public static JDialog SimulateForm;
    public static JDialog SimulateSGForm;
    public static JDialog SimulateODEForm;
    public static JDialog SimulateHDynswForm;
    public static JDialog SimulateHAdvancedForm;
    
    public static JDialog SimulateSStatisticsForm;
    public static JDialog SimulateSTrasectoryForm;
    public static JDialog SimulateSaveForm;
    
    //explore
    public static JDialog ExploreRangeForm;
    public static JDialog ExploreOutputTypeForm;
    
    //plot
    public static JDialog PlotForm;
    public static JDialog PlotSimulationTypeForm;
    public static JDialog PlotDetermForm;
    public static JDialog PlotStatexpForm;
    public static JDialog Plot3DForm;
    public static JDialog PlotHistForm;
    public static JDialog PlotNewFixForm;
    public static JDialog PlotPhaseForm;
    public static JDialog PlotStatisticsForm;
            
    public static JDialog PreviousForm;
    public static JDialog NextForm;
    
    //help
    public static JFrame HelpFrame;
    
    //current command expression
    public static String SimHyACommandExpression = "";
    public static String TempSimHyACommandExpression1 = "";
    public static String TempSimHyACommandExpression2 = "";
    
    //plot diagram
    public static Object PreviousPlotDiagram;
    
    //simhya command
    public static Commander SimHyACommand = new CommandManager();
    //history fo command
    public static ArrayList<String> history = new ArrayList<String>();
    public static int historyPos = -1;
}
